<template>
	<!-- 部件详情 -->
	<view class="building-add">
		<view class="add-head">
			<view class="head-right">
				<image v-if="info.img==''||info.img==null" src="../../../../static/infor/part.jpg"></image>
				<image v-else :src="info.img"></image>
			</view>
		</view>
		<view class="add-content">
			<view class="add-item">
				<view class="item-left">名称<text>*</text></view>
				<view class="item-left">{{info.name}}</view>
			</view>
			<view class="add-item">
				<view class="item-left">负责人<text>*</text></view>
				<view class="item-right">{{info.resName || '暂无资料'}}</view>
			</view>
			<view class="add-item">
				<view class="item-left">负责人电话<text>*</text></view>
				<view class="item-right">{{info.resPhone || '暂无资料'}}</view>
			</view>
			<view class="add-item">
				<view class="item-left">位置</view>
				<view class="item-right">{{info.address||'暂无资料'}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return{
				info:{},
				dictList:[],
			}
		},
		onNavigationBarButtonTap() {
			uni.navigateTo({
				url:'../Part-edit/Part-edit?id='+this.info.id
			})
		},
		mounted() {

		},
		onLoad() {
			this.info =	JSON.parse(uni.getStorageSync("info"))	
		},
		methods:{
			
		},
		
	}
</script>

<style lang="scss" scoped>
	.building-add{
		background-color: #f5f6f7;
		min-height: 100vh;
		.add-head{
			display: flex;
			justify-content: space-between;
			align-items: center;
			background-color: #fff;
			height: 180rpx;
			padding: 20rpx;
			.head-left{
				.head-left-1{
					color: #000;
					font-size: 28rpx;
					font-weight: 600;
				}
				.head-left-2{
					color: #999;
					font-size: 24rpx;
					margin-top: 20rpx;
				}
			}
			.head-right{
				background-color: #999;
				display: flex;
				justify-content: center;
				align-items: center;
				border-radius: 10rpx;
				width: 150rpx;
				height: 150rpx;
				image{
					width: 100%;
					height: 100%;
				}
			}
		}
		.add-content{
			margin-top: 20rpx;
			padding-bottom: 110rpx;
			.add-item{
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 20rpx;
				background-color: #fff;
				border-bottom: 1px solid #f4f1f1;
				.item-left{
					color: #333;
					font-size: 28rpx;
					min-width: 100rpx;
					text{
						color: #DD524D;
					}
				}
				.item-right{
					font-size: 26rpx;
					color: #999;
					input{
						text-align: right;
					}
					textarea{
						
					}
				}
			}
		}
		.btn{
			width: 100%;
			height: 110rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			color: #fff;
			font-size: 30rpx;
			background-color: #f4f1f1;
			position: fixed;
			bottom: 0;
			left: 0;
			border-top: 1px solid #999;
			.btn-1{
				background-color: #007AFF;
				display: flex;
				justify-content: center;
				align-items: center;
				width: 600rpx;
				height: 80rpx;
				border-radius: 40rpx;
			}
		}
	}
</style>
